package com.example.startproject_206shj.service;

import com.example.startproject_206shj.bean.WeatherResult;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Raindy on 2017/3/15.
 */

public interface Weather51Service {
    @GET("GetMoreWeather")//指明网络请求方式
    Call<WeatherResult> getResult(@Query("cityCode")String cityNumber, @Query("weatherType")int weatherType);//定义方法名字 给出api需要的参数 返回值是最外层实体类
}
